<?php

namespace common\models\teacher;

use Yii;

/**
 * This is the model class for table "{{%teacher_grade}}".
 *
 * @property int $id
 * @property string $name 等级名称
 */
class TeacherGrade extends \common\base\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return '{{%teacher_grade}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['name'], 'required'],
            [['name'], 'string', 'max' => 50],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'name' => '等级名称',
        ];
    }
}
